home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime for java / zoo tutorial / module10- qtzoo / completed source / elephantpane.java < prev    next >
Encoding:
Java Source  |  2000-06-23  |  3.5 KB  |  72 lines

  1. /**
  2.  * The pane that specifies media parameters for the Elephant pane
  3.  *
  4.  * @author Levi Brown
  5.  * @author Michael Hopkins
  6.  * @author Apple Computer, Inc.
  7.  * @version 1.0 10/21/1999
  8.  * 
  9.  * Copyright:     © Copyright 1999 Apple Computer, Inc. All rights reserved.
  10.  *    
  11.  * Disclaimer:    IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  12.  *                ("Apple") in consideration of your agreement to the following terms, and your
  13.  *                use, installation, modification or redistribution of this Apple software
  14.  *                constitutes acceptance of these terms.  If you do not agree with these terms,
  15.  *                please do not use, install, modify or redistribute this Apple software.
  16.  *
  17.  *                In consideration of your agreement to abide by the following terms, and subject
  18.  *                to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  19.  *                copyrights in this original Apple software (the "Apple Software"), to use,
  20.  *                reproduce, modify and redistribute the Apple Software, with or without
  21.  *                modifications, in source and/or binary forms; provided that if you redistribute
  22.  *                the Apple Software in its entirety and without modifications, you must retain
  23.  *                this notice and the following text and disclaimers in all such redistributions of
  24.  *                the Apple Software.  Neither the name, trademarks, service marks or logos of
  25.  *                Apple Computer, Inc. may be used to endorse or promote products derived from the
  26.  *                Apple Software without specific prior written permission from Apple.  Except as
  27.  *                expressly stated in this notice, no other rights or licenses, express or implied,
  28.  *                are granted by Apple herein, including but not limited to any patent rights that
  29.  *                may be infringed by your derivative works or by other works in which the Apple
  30.  *                Software may be incorporated.
  31.  *
  32.  *                The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  33.  *                WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  34.  *                WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  35.  *                PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  36.  *                COMBINATION WITH YOUR PRODUCTS.
  37.  *
  38.  *                IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  39.  *                CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  40.  *                GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  41.  *                ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  42.  *                OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  43.  *                (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  44.  *                ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  45.  * 
  46.  */
  47. public class ElephantPane extends AnimalPane
  48. {
  49.     public ElephantPane(Progress progress)
  50.     {
  51.         progress.updateProgress("Elephant Safari underway...");
  52.         displayImage("data/elephant/ElephantBackground.jpg", 6, 5, 110);
  53.         progress.updateProgress();
  54.         displayImage("data/elephant/ElephantTitle.jpg", 5, 0, 0 );
  55.         progress.updateProgress();
  56.         displayImage("data/elephant/ElephantMap.jpg", 5, 430, 260 );
  57.         progress.updateProgress();
  58.         displayImage("data/elephant/Elephant1.jpg", 5, 90, 295 );
  59.         progress.updateProgress();
  60.         displayImage("data/elephant/Elephant2.jpg", 5, 260, 295 );
  61.  
  62.         progress.updateProgress();
  63.         addText("data/elephant/Elephant.txt", 5, 15, 65, 415, 220);
  64.  
  65.         progress.updateProgress();
  66.         addMovie("data/elephant/Elephant.mov", 2, 425, 65);
  67.  
  68.         progress.updateProgress();
  69.         loadSound("data/Elephant/Elephant.au");
  70.     }
  71. }
  72.